package com.zust.zst.dao.mapper.score;

import com.zust.zst.common.dto.score.AddScoreDTO;
import com.zust.zst.common.dto.score.Score;

import com.zust.zst.common.dto.score.UpdateScoreDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import java.util.List;

@Mapper
public interface ScoreMapper {
    List<Score> showAllStudentScore(@Param("startIndex") int startIndex, @Param("pageSize") int pageSize);
    int getScoreCount();
    int deleteScore(@Param("scoreId") int scoreId);
    List<Score> getScoreById(@Param("scoreId") int scoreId);
    List<Score> getScoreBySubId(@Param("studentSubjectId") int studentSubjectId);
    void addScore(@Param("addScoreDTO") AddScoreDTO addScoreDTO);
    void updateScore(@Param("updateScoreDTO") UpdateScoreDTO updateScoreDTO);
}
